package com.lmy.androidcustomview.view

import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import com.lmy.androidcustomview.toPx

/**
 * @author
 * @功能:
 * @Creat 2/9/21 9:40 AM
 * @Compony 465008238@qq.com
 */


class CustomTextView(context: Context,attributeSet: AttributeSet):View(context,attributeSet) {
    private val paint = Paint(Paint.ANTI_ALIAS_FLAG)
    override fun onDraw(canvas: Canvas) {
        super.onDraw(canvas)
        canvas.drawText("hahah",100f.toPx,100f.toPx,paint)
    }
}